package com.waterstudio.filedownloader.ext.m3u8.bean;

import com.waterstudio.filedownloader.ext.m3u8.BuildConfig;

/**
 * Created by chensuilun on 2019/3/25.
 */
public class MasterList {

    private String url;

    private int bandWidth;

    private M3U8 mM3U8;

    public MasterList(String url, int bandWidth) {
        this.url = url;
        this.bandWidth = bandWidth;
    }

    public String getUrl() {
        return url;
    }

    public int getBandWidth() {
        return bandWidth;
    }

    public M3U8 getM3U8() {
        return mM3U8;
    }

    public void setM3U8(M3U8 m3U8) {
        mM3U8 = m3U8;
    }

    @Override
    public String toString() {
        if (BuildConfig.LOG_ENABLE) {
            return "MasterList{" +
                    "url='" + url + '\'' +
                    ", bandWidth=" + bandWidth +
                    ", mM3U8=" + mM3U8 +
                    '}';
        } else {
            return "{" +
                    "='" + url + '\'' +
                    ", =" + bandWidth +
                    ", =" + mM3U8 +
                    '}';
        }
    }
}
